﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo14
{

    enum Fist{ 
    剪刀=1,
    石头,
    布
    }
    class Player
    {
        private string name;
        private int score;

        public Player(string name) {
            this.name = name;
            this.score = 0;
        }

        public int player() {
            Console.WriteLine("请出拳：{0}",ListFist());
            return player();
        }

        public static string ListFist() {
            string firstString = "";
            int i = 1;
            foreach (Fist f in Enum.GetValues(typeof(Fist)))
            {
                firstString += i + "、" + f + "；";
                Console.WriteLine(f);
                i++;
            }
            return firstString;
        }

        public void addScore() {
            score += 1;
        }
        public int Score() {
            return score;
        }

        public string playerName() {
            return name;
        }
        

    }
}
